﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Credit Card Type Repository Interface
    /// </summary>
    public interface ICreditCardTypeRepository
    {
        /// <summary>
        /// Get All Credit Card Type
        /// </summary>
        /// <returns></returns>
        IQueryable<CreditCardType> FindAllCreditCardType();

        /// <summary>
        /// Get Credit Card Type By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<CreditCardType> FindCreditCardTypeByName(string strQuery);

        /// <summary>
        /// Get Credit Card Type By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        CreditCardType GetCreditCardTypeById(int id);

        /// <summary>
        /// Add Credit Card Type in the Database
        /// </summary>
        /// <param name="creditCardType"></param>
        void Add(CreditCardType creditCardType);

        /// <summary>
        /// Delete Credit Card Type from the Database
        /// </summary>
        /// <param name="creditCardType"></param>
        void Delete(CreditCardType creditCardType);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}